<template>
	<view>
		<view class="padding-x-20 index_top">
			<view class="flex align-center  padding-y-30">
				<image style="width: 36rpx;height: 36rpx;" @click="goBack()" src="../../static/img/back_f.png"></image>
				<view class="fs-32 color-fff text-center flex1">买单订单</view>
			</view>
		</view>
		<view class="relative padding-x-20" style="margin-top: -200rpx;">
			<view v-for="(item,index) in list" :key='index'  @click="jump(`/pages/my/to_pinglun?shop_id=${item.shop_id}&name=${item.shop_name}`)"  class="radius10 bg-fff padding-x-24 margin-bottom-30">
				<view class="flex align-center justify-between margin-y-24">
					<view class="flex align-center">
						<image style="width: 32rpx;height: 32rpx;" src="../../static/img/shop.png"></image>
						<text class="fs-28 color-333 margin-left-10">{{item.shop_name}}</text>
					</view>
					<text class="fs-28 color-zhuse">已支付</text>
				</view>
				<view class="flex align-center justify-between margin-bottom-24">
					<text class="fs-24 color-666">本次消费额: </text>
					<text class="fs-24 color-fuse">￥{{item.amount}}</text>
				</view>
				<view class="flex align-center justify-between margin-bottom-24">
					<text class="fs-24 color-666">积分抵扣额: </text>
					<text class="fs-24 color-fuse">￥{{item.points_amount}}</text>
				</view>
				<view class="flex align-center justify-between margin-bottom-24">
					<text class="fs-26 color-333">实付结算额</text>
					<text class="fs-32 color-zhuse">￥{{item.pay_amount}}</text>
				</view>
			</view>
		</view>
		
		<!-- <view class="nomore" :class="loadStatus" v-if="list.length"></view> -->
		<view v-if="list.length < 1" class="bg-fff radius10  padding-y-100 relative" style="margin-top: -200rpx;height: 100vh;">
			<empty></empty>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		onShow() {
			this.init()
		},
		methods:{
			init(){
				this.$api.main_offline_payment().then(res=>{
					if(res.code==1){
						this.list=res.data.data
					}
				})
			}
		}
	}
</script>
<style>
	page{background: #F7F7F7;}
</style>
<style lang="scss" scoped>
	.index_top{
		background: linear-gradient(to bottom,#FF7B00,#FCBA72,#FFFFFF);
		height: 300rpx;
	}
</style>
